using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;

namespace Pcme.Info.MvcMusicStore.Models {
    
    
    public partial class ArtistMap : ClassMap<Artist> {
        
        public ArtistMap() {
			Table("Artist");
			LazyLoad();
			Id(x => x.ArtistId).GeneratedBy.Identity().Column("ArtistId");
			Map(x => x.Name).Column("Name");
            HasMany(x => x.Albums).KeyColumn("ArtistId");
        }
    }
}
